import { createStore } from 'vuex'

interface State {
    taskList:any[],
    isLoad:boolean
}

export default createStore({
    state: {
        taskList:[],
        isLoad:false
    },
    mutations: {
        createTask(state:any,newTask:string){
            state.taskList.push(newTask)
        },
        alterLoad(state:any,falg:boolean){
            state.isLoad = falg
        },
    }
});